<?php
/*
Template Name: Single Prospress Post
*/
/**
 * This the default template for displaying a single Prospress post.
 * It includes all the basic elements for a Prospress post in a very 
 * neutral style.
 *
 * @package Prospress
 * @subpackage Theme
 * @since 0.1
 */
?>
<?php get_header(); ?>
	<div id="container" class="prospress-container">
		<div id="content" class="prospress-content">
		<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
			<h2 class="pp-title entry-title"><?php the_title();?></h2>
		
		<!-- QAPRC:	Deleted pp-thumbnail displaying
			xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
		-->	 
			<?php global $post;
	
			/* QAPRC: Get request details (stored as post's meta) */	
			$post_ID = $post->ID;
			
			$attest_cat = get_post_meta( $post_ID, 'attest_cat', true );
			$CorpForm = get_post_meta( $post_ID, 'CorpForm', true );
					
			?>
      
			 
			<?php //QAPRC: do_action( 'pp_single_content' ); ?>
	
			<div class="bid-container">
				<p> Attestion Category :<strong><?php echo $attest_cat;?></strong></p>
				<p> Business Association Form:<strong><?php echo $CorpForm;?></strong></p>
			</div>

			<!-- The Client -->
			<h2 class="pp-title entry-title">The Client</h2>
			
			
			<div class="bid-container">
				<p> This request is made by:  <strong><?php the_author();?></strong></p>
			</div>

			<!-- Back to index view-->
				<div id="nav-below" class="navigation">
				<div class="nav-index"><a href="<?php echo $market->get_index_permalink(); ?>"><?php printf( __("&larr; Return to %s Index", 'Prospress'), $market->label ); ?></a></div>
			</div>


		<?php endwhile; // end of the loop. ?>
		</div>
	</div>


	<div id="sidebar" class="prospress-sidebar">
		<ul class="xoxo"> 
			<!-- Add default countdown widget if no widgets currently registered in single auctions sidebar -->
			<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar( $market->name(). '-single-sidebar' ) ) : // begin primary sidebar widgets ?>			
			<!-- QAPRC Bid form as default sidebar -->	
			<div class="sidebarContainer">
					<?php the_bid_form(); ?>
				
				<p class="pInfo blue"><strong>Stay safe:</strong> Read our <a href="#" id="safetyGuideLink">guidelines</a> before bidding</p>

			</div>
				
			
			<?php endif;?>
		</ul>
	</div>
<?php get_footer(); ?> 
